
import {simpleServer} from '@/tools/servers'

/**
 * 资讯审核
 */
export class NewsReviewService {
    // 分页查询列表
    static findNewsReviews (pageDTO) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.findNewsReviews,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReviews', body);
    }


    //根据资讯审核Id查询资讯审核
    static findNewsReview (newsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findNewsReview ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReview',body);
    }

    //为了编辑,根据资讯审核Id查询资讯审核
    static findNewsReviewForEdit(newsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findNewsReviewForEdit ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReviewForEdit',body);
    }

    //为了查看,根据资讯审核Id查询资讯审核，所有外键字段的名称都已加载
    static findNewsReviewForView(newsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findNewsReviewForView ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReviewForView',body);
    }

    //创建新的资讯审核
    static createNewsReview() {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.createNewsReview,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/createNewsReview',body);
    }

    //保存资讯审核
    static saveNewsReview(newsReview) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.saveNewsReview,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/saveNewsReview', body);
    }

    //编辑资讯审核
    static updateNewsReview (newsReview) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.updateNewsReview,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/updateNewsReview', body);
    }

    //根据资讯审核Id删除资讯审核
    static deleteNewsReview (newsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.deleteNewsReview,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/deleteNewsReview',body);
    }

    //为了查看,根据资讯审核Id查询资讯审核，只加载ID 和 名称
    static findNewsReviewsWithIdNameById(newsReviewId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findNewsReviewsWithIdNameById ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReviewsWithIdNameById',body);
    }

    //为了查看,根据资讯审核 名称 查询资讯审核，只加载ID 和 名称
    static findNewsReviewsWithIdNameByName(newsReviewName) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findNewsReviewsWithIdNameByName ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/review/NewsReview/findNewsReviewsWithIdNameByName',body);
    }


}
